package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.DestinationEs;
import cn.wolfcode.luowowo.search.repository.IDestinationEsRepository;
import cn.wolfcode.luowowo.search.service.IDestinationEsService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class DestinationEsServiceImpl implements IDestinationEsService {

    @Autowired
    private IDestinationEsRepository destinationEsRepository;

    @Override
    public void save(DestinationEs destinationEs) {
        destinationEsRepository.save(destinationEs);
    }

    @Override
    public DestinationEs findByName(String name) {
        return destinationEsRepository.findByName(name);
    }
}
